package com.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api-c")
public class ServiceCContoller {
	@GetMapping("/")
	@ResponseBody
	public String index(HttpServletRequest request) {
		return "service c "+request.getLocalAddr()+":"+request.getLocalPort();
	}
	@RequestMapping("/test")
	public String getATest() {
		return "list";
	}
}
